package com.yiruantong.common.core.enums.user;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 登录类型
 *
 * @author YiRuanTong
 */
@Getter
@AllArgsConstructor
public enum LoginTypeEnum {

  /**
   * 密码登录
   */
  PASSWORD("user.password.retry.limit.exceed", "user.password.retry.limit.count"),

  /**
   * 短信登录
   */
  SMS("sms.code.retry.limit.exceed", "sms.code.retry.limit.count"),

  /**
   * 邮箱登录
   */
  EMAIL("email.code.retry.limit.exceed", "email.code.retry.limit.count"),

  /**
   * 小程序登录
   */
  XCX("", ""),

  /**
   * 货主登录登录
   */
  CONSIGNOR("consignor.password.retry.limit.exceed", "email.password.retry.limit.count"),

  /**
   * 司机登录登录
   */
  DRIVER("driver.password.retry.limit.exceed", "driver.password.retry.limit.count");

  /**
   * 登录重试超出限制提示
   */
  final String retryLimitExceed;

  /**
   * 登录重试限制计数提示
   */
  final String retryLimitCount;
}
